<template>
    <div id="dataStatistics" class="dataStatistics same-change-oldstyle">
        <div class="bgfff" style="padding:0px 15px;box-sizing: border-box;">
             <div class="saem-seat-box" style="padding:30px 25px">
                <div class="saem-seat-left">
                    <span>当前位置：</span>
                    <el-breadcrumb separator-class="el-icon-arrow-right">
                        <el-breadcrumb-item :to="{ path: '/dataStatistics' }">首页</el-breadcrumb-item>
                        <el-breadcrumb-item>控制面板</el-breadcrumb-item>
                        <el-breadcrumb-item>数据统计</el-breadcrumb-item>
                    </el-breadcrumb>
                </div>
                <div class="saem-seat-right">
                    <!-- <button class="same-search-btns same-search-export" >批量下载二维码</button> -->
                    <button class="same-search-btns same-search-export" @click="RefreshFun">刷新</button>
                    <!-- <button class="same-search-btns" @click="returnBack">返回</button> -->
                </div>
            </div>
        </div>
        <div class="headBox">
            <!--消息通知-->
            <div class="pl15 pr15 pb15 bgfff mb15" v-if="platform_bulletin.length>0">
              <router-link :to="{path:'/announcementDetail',query: {id: platform_bulletin[0].nid}}" class="notice_box">
                <img src="../../../static/images/notice.png">
                <span class="notice_content">{{platform_bulletin[0].title}}</span>
                <span class="notice_detail">查看详情></span>
                <!--<div class="close_btn" @click="closeNotice">×</div>-->
              </router-link>
            </div>

            <!--总统计-->
            <div class="bgfff pl15 mb15">
              <div class="table_title">
                <div class="title_block">汇总统计</div>
                <div class="choose_time">
                  <div class="on_choose_one" :class="{'on_show_it':check_total==4}" @click="chooseTotal(4)">昨天</div>
                  <div class="on_choose_one" :class="{'on_show_it':check_total==3}" @click="chooseTotal(3)">近7天</div>
                  <div class="on_choose_one" :class="{'on_show_it':check_total==2}" @click="chooseTotal(2)">本月</div>
                </div>
              </div>
              <div class="total_box home_flex">
                <div class="radiusBox">
                  <div class="lineBlock">
                    <div class="line_name">设备数</div>
                    <div class="line_value">1000000</div>
                  </div>
                  <div class="round1"></div>
                  <div class="round2"></div>
                </div>
                <div class="radiusBox">
                  <div class="lineBlock">
                    <div class="line_name">合伙人数</div>
                    <div class="line_value">1000000</div>
                  </div>
                  <div class="round1"></div>
                  <div class="round2"></div>
                </div>
                <div class="radiusBox">
                  <div class="lineBlock">
                    <div class="line_name">加盟商人数</div>
                    <div class="line_value">1000000</div>
                  </div>
                  <div class="round1"></div>
                  <div class="round2"></div>
                </div>
                <div class="radiusBox">
                  <div class="lineBlock">
                    <div class="line_name">用户数</div>
                    <div class="line_value">1000000</div>
                  </div>
                  <div class="round1"></div>
                  <div class="round2"></div>
                </div>
                <div class="radiusBox">
                  <div class="lineBlock">
                    <div class="line_name">水卡数</div>
                    <div class="line_value">1000000</div>
                  </div>
                  <div class="round1"></div>
                  <div class="round2"></div>
                </div>
                <div class="radiusBox">
                  <div class="lineBlock">
                    <div class="line_name">园区数</div>
                    <div class="line_value">1000000</div>
                  </div>
                  <div class="round1"></div>
                  <div class="round2"></div>
                </div>
                <div class="radiusBox">
                  <div class="lineBlock">
                    <div class="line_name">订单数</div>
                    <div class="line_value">1000000</div>
                  </div>
                  <div class="round1"></div>
                  <div class="round2"></div>
                </div>
              </div>
            </div>

            <!--排行榜-->
            <div class="rankBlock home_flex mb15">
              <div class="flex1 bgfff pl15 pr15 mr15">
                <div class="table_title flex_space">
                  <div class="home_flex">
                    <div class="title_block">设备收入排行榜</div>
                    <!--<el-select size="medium" v-model="time_date" style="width:90px">
                      <el-option v-for="item in selected_time" :key="item.value" :label="item.label" :value="item.value"></el-option>
                    </el-select>-->
                    <select class="time_date" v-model="time_date" @change="timeDate(1)">
                      <option v-for="item in selected_time" :key="item.value" :value="item.value">{{item.label}}</option>
                    </select>
                  </div>
                  <div class="choose_time">
                    <div class="on_choose_one" :class="{'on_show_it':check_one==1}" @click="chooseOne(1)">水卡</div>
                    <div class="on_choose_one" :class="{'on_show_it':check_one==2}" @click="chooseOne(2)">在线</div>
                    <div class="on_choose_one" :class="{'on_show_it':check_one==3}" @click="chooseOne(3)">积分</div>
                    <div class="on_choose_one" :class="{'on_show_it':check_one==4}" @click="chooseOne(4)">投币</div>
                  </div>
                </div>
                <table>
                  <thead>
                  <tr>
                    <th style="width: 30px;">排行</th>
                    <th>设备名</th>
                    <th>水卡支付(金额/笔数)</th>
                    <th>在线支付(金额/笔数)</th>
                    <th>积分支付(个数/笔数)</th>
                    <th>投币支付(金额/笔数)</th>
                  </tr>
                  </thead>
                  <tbody>
                  <tr v-for="(item,index) in 10" :key="index">
                    <td><img class="rankImg" :src="'../../../static/images/rank'+ Number(index+1) +'.png'" v-if="index<3"><div v-else>{{index+1}}</div></td>
                    <td>木林森1</td>
                    <td>100/2</td>
                    <td>100/2</td>
                    <td>100/2</td>
                    <td>100/2</td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <div class="flex1 bgfff pl15 pr15 mr15">
                <div class="table_title flex_space">
                  <div class="home_flex">
                    <div class="title_block">合伙人收入排行榜</div>
                    <select class="time_date" @change="timeDate(2)">
                      <option value="1" selected="selected">昨天</option>
                      <option value="2">近7天</option>
                      <option value="3">当月</option>
                    </select>
                  </div>
                  <div class="choose_time">
                    <div class="on_choose_one" :class="{'on_show_it':check_two==1}" @click="chooseTwo(1)">水卡</div>
                    <div class="on_choose_one" :class="{'on_show_it':check_two==2}" @click="chooseTwo(2)">在线</div>
                    <div class="on_choose_one" :class="{'on_show_it':check_two==3}" @click="chooseTwo(3)">积分</div>
                    <div class="on_choose_one" :class="{'on_show_it':check_two==4}" @click="chooseTwo(4)">投币</div>
                  </div>
                </div>
                <table>
                  <thead>
                  <tr>
                    <th style="width: 30px;">排行</th>
                    <th>合伙人名称</th>
                    <th>水卡支付(金额/笔数)</th>
                    <th>在线支付(金额/笔数)</th>
                    <th>积分支付(个数/笔数)</th>
                    <th>投币支付(金额/笔数)</th>
                  </tr>
                  </thead>
                  <tbody>
                  <tr v-for="(item,index) in 10" :key="index">
                    <td><img class="rankImg" :src="'../../../static/images/rank'+ Number(index+1) +'.png'" v-if="index<3"><div v-else>{{index+1}}</div></td>
                    <td>木林森1</td>
                    <td>100/2</td>
                    <td>100/2</td>
                    <td>100/2</td>
                    <td>100/2</td>
                  </tr>
                  </tbody>
                </table>
              </div>
              <div class="flex1 bgfff pl15 pr15">
                <div class="table_title flex_space">
                  <div class="home_flex">
                    <div class="title_block">园区排行榜</div>
                    <select class="time_date" @change="timeDate(3)">
                      <option value="1" selected="selected">昨天</option>
                      <option value="2">近7天</option>
                      <option value="3">当月</option>
                    </select>
                  </div>
                  <div class="choose_time">
                    <div class="on_choose_one" :class="{'on_show_it':check_three==1}" @click="chooseThree(1)">水卡</div>
                    <div class="on_choose_one" :class="{'on_show_it':check_three==2}" @click="chooseThree(2)">在线</div>
                    <div class="on_choose_one" :class="{'on_show_it':check_three==3}" @click="chooseThree(3)">积分</div>
                    <div class="on_choose_one" :class="{'on_show_it':check_three==4}" @click="chooseThree(4)">投币</div>
                  </div>
                </div>
                <table>
                  <thead>
                  <tr>
                    <th style="width: 30px;">排行</th>
                    <th>园区名称</th>
                    <th>水卡支付(金额/笔数)</th>
                    <th>在线支付(金额/笔数)</th>
                    <th>积分支付(个数/笔数)</th>
                    <th>投币支付(金额/笔数)</th>
                  </tr>
                  </thead>
                  <tbody>
                  <tr v-for="(item,index) in 10" :key="index">
                    <td><img class="rankImg" :src="'../../../static/images/rank'+ Number(index+1) +'.png'" v-if="index<3"><div v-else>{{index+1}}</div></td>
                    <td>木林森1</td>
                    <td>100/2</td>
                    <td>100/2</td>
                    <td>100/2</td>
                    <td>100/2</td>
                  </tr>
                  </tbody>
                </table>
              </div>
            </div>

            <!--统计图-->
            <div class="bgfff pl15 pr15 mb15">
              <div class="table_title">
                <div class="title_block">收益统计</div>
                <div class="choose_time">
                  <div class="on_choose_one" :class="{'on_show_it':on_chart==4}" @click="incomeCount(4)">昨天</div>
                  <div class="on_choose_one" :class="{'on_show_it':on_chart==3}" @click="incomeCount(3)">近7天</div>
                  <div class="on_choose_one" :class="{'on_show_it':on_chart==2}" @click="incomeCount(2)">本月</div>
                  <div class="on_choose_one" :class="{'on_show_it':on_chart==1}" @click="incomeCount(1)">一年</div>
                </div>
              </div>
              <div id="earnings" ref="earnings" v-loading="loading_a" element-loading-text="创建中..." style="height:400px;padding-top: 10px;"></div>
            </div>

            <div class="bgfff pl15 pr15 mb15">
              <div class="table_title">
                <div class="title_block">业务统计</div>
                <div class="choose_time">
                  <div class="on_choose_one" :class="{'on_show_it':on_cherts==4}" @click="multipleCount(4)">昨天</div>
                  <div class="on_choose_one" :class="{'on_show_it':on_cherts==3}" @click="multipleCount(3)">近7天</div>
                  <div class="on_choose_one" :class="{'on_show_it':on_cherts==2}" @click="multipleCount(2)">本月</div>
                  <div class="on_choose_one" :class="{'on_show_it':on_cherts==1}" @click="multipleCount(1)">一年</div>
                </div>
              </div>
              <div id="business" ref="business" v-loading="loading_b" element-loading-text="创建中..." style="height:400px;padding-top: 10px;"></div>
            </div>

            <div class="rankBlock home_flex mb15">
              <div class="flex1 bgfff pl15 pr15 mr15">
                <div class="table_title">
                  <div class="title_block">办卡统计</div>
                </div>
                <div class="rangeBlock">
                  <div class="range1_desc">
                    <div class="desc_text">普通水卡</div>
                    <div class="desc_num">{{card.ordinary_card}}张</div>
                  </div>
                  <div class="range1" :style="'width: '+range+'%;'"></div>
                  <div class="range2_desc">
                    <div class="desc_text">特殊水卡</div>
                    <div class="desc_num">{{Number(card.old_age_card) + Number(card.baby_card)}}张</div>
                  </div>
                  <div class="range2" :style="'width: '+(100-range)+'%;'"></div>
                </div>
              </div>
              <div class="flex1 bgfff pl15 pr15 mr15">
                <div class="table_title">
                  <div class="title_block">收入统计</div>
                </div>
                <div id="income" ref="income" style="height:300px"></div>
              </div>
              <div class="flex1 bgfff pl15 pr15">
                <div class="table_title">
                  <div class="title_block">订单统计</div>
                </div>
                <div id="order" ref="order" style="height:300px"></div>
              </div>
            </div>

        </div>
    </div>
</template>
<script>
    //引入Echarts主模块
    let echarts = require('echarts/lib/echarts');
    export default {
        name: 'informMsg',
        data: function () {
            return {
                loading_a:false,//加载中
                loading_b:false,//加载中
                loading:false,//加载中
                value1: "", //开始时间
                value2: '', //结束时间
                chooseNum: 1, //排行条件
                chooseWay: 1, //选择方式
                on_chart: 1,//选择chart1
                on_cherts: 1,//选择chart2
                deviceCount: [],
                income: [],
                card: [],
                range:'',
                order: [],
                device_sort: [],
                backlog: [],
                system_message: [],
                platform_bulletin: [],
                isLoad: false,

              check_total: 1,//总统计选择日期
              check_one:1, //排行排序选择，设备收入
              check_two:1, //排行排序选择，合伙人收入
              check_three:1, //排行排序选择，园区
              selected_time: [  //时间
                {
                  value: 1,
                  label: '昨天',
                },{
                  value: 2,
                  label: '近7天',
                },{
                  value: 3,
                  label: '当月',
                }
              ],
              time_date: 1,
            }
        },
        computed: {},
        created: function () {
            this.loading_a=true;
            this.loading_b=true;
        },
        inject: [
            'reload'
        ],
        methods: {
            RefreshFun(){
                console.log('触发事件')
                // 调用reload方法，刷新整个页面
                this.reload()
            },
            //返回
            returnBack(){
                this.$router.back(-1);
            },
            //跳转
            jumpDevicelist(){
                this.$router.push({path: '/devicelist', query: { stat_es: 2 } })
            },
            jumpMore(){
                this.$router.push({path: '/announcementList' })
            },


            /*  -------   */
            //切换总统计时间
            chooseTotal(val){
              if(this.check_total == val){
                this.check_total = '';
              }else{
                this.check_total = val;
              }
            },

            /*  -------   */
            //切换排行榜日期
            timeDate(type){
              console.log(type)
            },

            /*  -------   */
            //选择排行方式，设备收入
            chooseOne(val){
              this.check_one = val;
            },
            //选择排行方式，合伙人收入
            chooseTwo(val){
              this.check_two = val;
            },
            //选择排行方式，园区
            chooseThree(val){
              this.check_three = val;
            },

            //选择排行
            chooseTop(vlu) {
                this.loading = true;
                this.chooseNum = vlu;
                this.deviceSort(this.chooseNum, this.chooseWay);
            },
            //选择排行方式
            chooseWaybtn(vshow) {
                this.loading = true;
                this.chooseWay = vshow;
                this.deviceSort(this.chooseNum, this.chooseWay);
            },
            /*创建图表一  收益统计*/
            createChartOne(data, abscissa) {
                let earnings = echarts.init(this.$refs.earnings);
                earnings.setOption({
                    tooltip: {
                        trigger: 'axis'
                    },
                    legend: {
                      data:['充值收益','在线打水收益','积分打水收益','投币打水收益']
                    },
                    color:['#D72121','#2C5586','#FEAC2D','#23AEB3'],
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    toolbox: {
                        feature: {
                           saveAsImage: {
                            show: false,
                    　　　　 excludeComponents :['toolbox'],
                    　　　　 pixelRatio: 2
                          }
                        }
                    },
                    xAxis: {
                        type: 'category',
                        splitLine: {show: false}, //保留网格线
                        splitArea: {show: false}, //保留网格区域
                        boundaryGap: false,
                        // data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日', '最后', '之后', '以后', '再来', '最后']
                        data: abscissa
                    },
                    yAxis: {
                        type: 'value',
                        splitLine: {show: true}, //保留网格线
                        splitArea: {show: false} //保留网格区域
                    },
                    series: //data,
                      [

                        {
                          name:'充值收益',
                          type:'line',
                          smooth: true,
                          label: {
                            normal: {
                              show: true,
                              position: 'top'
                            }
                          },
                          data: data[0].data,
                        }, {
                          name:'在线打水收益',
                          type:'line',
                          smooth: true,
                          label: {
                            normal: {
                              show: true,
                              position: 'top'
                            }
                          },
                          data: data[1].data,
                        }, {
                          name:'积分打水收益',
                          type:'line',
                          smooth: true,
                          label: {
                            normal: {
                              show: true,
                              position: 'top'
                            }
                          },
                          data: data[2].data,
                        }, {
                          name:'投币打水收益',
                          type:'line',
                          smooth: true,
                          label: {
                            normal: {
                              show: true,
                              position: 'top'
                            }
                          },
                          data: data[0].data,
                        },
                      ]
                })
                this.loading_a=false;
            },
            /*创建图表二  业务统计*/
            createChartTwo(data, abscissa) {
                let business = echarts.init(this.$refs.business);
                business.setOption({
                    tooltip: {
                        trigger: 'axis'
                    },
                    legend: {
                        data: ['新增设备数','办卡数','打水订单数']
                    },
                    color:['#F2A687','#FEC772','#49B271'],
                    grid: {
                        left: '3%',
                        right: '4%',
                        bottom: '3%',
                        containLabel: true
                    },
                    toolbox: {
                        feature: {
                          saveAsImage: {
                            show: false,
                    　　　　 excludeComponents :['toolbox'],
                    　　　　 pixelRatio: 2
                          }
                        }
                    },
                    xAxis: {
                        type: 'category',
                        splitLine: {show: false}, //保留网格线
                        splitArea: {show: false}, //保留网格区域
                        boundaryGap: false,
                        data: abscissa
                    },
                    yAxis: {
                        type: 'value',
                        splitLine: {show: true}, //保留网格线
                        splitArea: {show: false} //保留网格区域
                    },
                    series: //data
                      [
                        {
                          name:'新增设备数',
                          type:'line',
                          smooth: true,
                          label: {
                            normal: {
                              show: true,
                              position: 'top'
                            }
                          },
                          areaStyle: {
                            color: 'rgb(250,224,216)',
                          },
                          data: data[0].data,
                        }, {
                          name:'办卡数',
                          type:'line',
                          smooth: true,
                          label: {
                            normal: {
                              show: true,
                              position: 'top'
                            }
                          },
                          areaStyle: {
                            color: 'rgb(255,235,204)',
                          },
                          data: data[1].data,
                        }, {
                          name:'打水订单数',
                          type:'line',
                          smooth: true,
                          label: {
                            normal: {
                              show: true,
                              position: 'top'
                            }
                          },
                          areaStyle: {
                            color: 'rgb(191,230,210)',
                          },
                          data: data[2].data,
                        }
                      ]
                })
                 this.loading_b=false;
            },
            // 创建饼图，统计
            createChartPie(data){
              // 收入统计，
              let income = echarts.init(this.$refs.income);
              income.setOption({
                tooltip : {
                  trigger: 'item',
                  formatter: "{a} <br/>{b} : {c} ({d}%)"
                },
                legend: {
                  show: false,
                  x : 'center',
                  y : 'bottom',
                  data:['水卡充值收入','在线打水收入','积分打水收入','投币打水收入']
                },
                series : [
                  {
                    type:'pie',
                    radius : [30, 80],
                    center : ['50%', '50%'],
                    // roseType : 'radius',
                    // width: '20%',       // for funnel
                    // x: '10%',
                    data: data.income
                  }
                ]
              });
              // 订单统计
              let order = echarts.init(this.$refs.order);
              order.setOption({
                tooltip : {
                  trigger: 'item',
                  formatter: "{a} <br/>{b} : {c} ({d}%)"
                },
                legend: {
                  show: false,
                  x : 'center',
                  y : 'bottom',
                  data:['线下支付订单','在线支付订单','积分支付订单','投币支付订单']
                },
                series : [
                  {
                    type:'pie',
                    radius : [30, 80],
                    center : ['50%', '50%'],
                    // roseType : 'radius',
                    // width: '20%',       // for funnel
                    // x: '10%',
                    data: data.order
                  }
                ]
              });
            },

            //第一板块
            getDeviceCount() {
                var that = this;
                that.$post({
                    url: "Partner/Console/getDeviceCount",
                    data: {},
                    success: (data) => {
                        if (data.code == 1000) {
                            that.deviceCount = data.data;
                        } else {
                            this.$message({
                                showClose: true,
                                message: '请求失败或无数据',
                                center: true
                            });
                        }
                    }
                })
            },
            //第二板块
            businessStatistics() {
                var that = this;
                that.$post({
                    url: "Partner/Console/businessStatistics",
                    data: {},
                    success: (data) => {
                        if (data.code == 1000) {
                            that.income = data.data.income;
                            that.card = data.data.card;
                            that.order = data.data.order;

                            var cardData = data.data.card;
                            that.range = Number(cardData.ordinary_card)/(Number(cardData.ordinary_card) + Number(cardData.old_age_card) + Number(cardData.baby_card) + Number(cardData.other_card))*100;
                            var incomeData = data.data.income;
                            var orderData = data.data.order;
                            var chartIncome = {
                              income: [
                                {name: '水卡充值收入', value: incomeData.water_card_recharge},
                                {name: '在线打水收入', value: incomeData.sale_water},
                                {name: '积分打水收入', value: incomeData.integral_water},
                                {name: '投币打水收入', value: 0},
                              ],
                              order: [
                                {name: '线下支付订单', value: orderData.card_pay},
                                {name: '在线支付订单', value: orderData.online},
                                {name: '积分支付订单', value: orderData.integral},
                                {name: '投币支付订单', value: 0},
                              ]
                            };
                            that.createChartPie(chartIncome);
                        } else {
                            this.$message({
                                showClose: true,
                                message: '请求失败或无数据',
                                center: true
                            });
                            // alert('请求失败或无数据');
                        }
                    }
                })
            },
            //第三板块
            deviceSort(date,type) {
                var that = this;
                that.$post({
                    url: "Partner/Console/deviceSort",
                    data: {
                        type: type,
                        date: date
                    },
                    success: (data) => {
                        if (data.code == 1000) {
                            that.device_sort = data.data;
                            that.loading = false;
                        } else {
                            this.$message({
                                showClose: true,
                                message: '请求失败或无数据',
                                center: true
                            });
                        }
                    }
                })
            },
            //第四板块
            incomeCount(type_val) {
                var that = this;
                that.loading_a=true;
                var type_val = type_val;
                that.on_chart = type_val;
                that.$post({
                    url: "Partner/Console/incomeCount",
                    data: {
                        type: type_val
                    },
                    success: (data) => {
                        if (data.code == 1000) {
                            this.createChartOne(data.data.data, data.data.abscissa);

                        } else {
                            this.$message({
                                showClose: true,
                                message: '请求失败或无数据',
                                center: true
                            });
                        }
                    }
                })
            },
            //第五板块
            multipleCount(type_ot) {
                var that = this;
                that.loading_b=true;
                var type_ot = type_ot;
                that.on_cherts = type_ot;
                that.$post({
                    url: "Partner/Console/multipleCount",
                    data: {
                        type: type_ot
                    },
                    success: (data) => {
                        if (data.code == 1000) {
                            this.createChartTwo(data.data.data, data.data.abscissa);
                        } else {
                            this.$message({
                                showClose: true,
                                message: '请求失败或无数据',
                                center: true
                            });
                        }
                    }
                })
            },
            //第六板块
            messagefun() {
                var that = this;
                this.isLoad = false;
                that.$post({
                    url: "Partner/Console/message",
                    data: {},
                    success: (data) => {
                        this.isLoad = true;
                        if (data.code == 1000) {
                            that.backlog = data.data.backlog;
                            that.system_message = data.data.system_message;
                            that.platform_bulletin = data.data.platform_bulletin;
                        } else {
                            this.$message({
                                showClose: true,
                                message: '请求失败或无数据',
                                center: true
                            });
                        }
                    }
                })
            },
            getConsole() {
                this.$message({
                    showClose: true,
                    message: '数据每两小时更新',
                    center: true,
                    type: 'warning'
                });
            }

        },

        mounted() {
            // this.getConsole();
            this.getDeviceCount();//第一板块
            this.businessStatistics();//第二板块
            this.deviceSort();//第三板块
            this.incomeCount(1);//第四板块创建图表一
            this.multipleCount(1);//第五板块创建图表二
            this.messagefun();//第六板块
          console.log(Number('5') + Number('6'));
        }
    }

</script>
<style scoped>
    .dataStatistics {
        width: 100%;
        height: 100%;
        background: #fafafa;
    }

    .headBox {
        /* background: #F2F3F3; */
        display: flex;
        width: 100%;
        flex-direction: column;
    }




    .bgfff{
      background: #fff;
    }
    table{
      width: 100%;
      padding-bottom: 10px;
    }
    thead tr{
      border-bottom: 1px dashed #ededed;
    }
    th,td{
      font-weight: normal;
      font-size: 12px;
      text-align: center;
      padding: 5px 5px 5px 0;
    }
    .pl15{
      padding-left: 15px;
    }
    .pr15{
      padding-right: 15px;
    }
    .pb15{
      padding-bottom: 15px;
    }
    .mr15{
      margin-right: 15px;
    }
    .mb15{
      margin-bottom: 15px;
    }
    .rankImg{
      width: 25px;
    }
    .time_date{
      border: 1px solid #1C487D;
      border-radius: 10px;
      color: #1C487D;
    }
    .home_flex{
      display: flex;
      align-items: center;
    }
    .flex1{
      flex: 1;
    }
    .flex_space{
      justify-content: space-between!important;
    }
    .rankBlock{
      align-items: stretch!important;
    }

    /*  通知消息  */
    .notice_box{
      height: 40px;
      display: flex;
      align-items: center;
      font-size: 14px;
      background: #FFF6F3;
      border-radius: 0 0 10px 10px;
      padding-left: 28px;
      position: relative;
    }
    .notice_box img{
      width: 34px;
      margin-right: 10px;
    }
    .notice_box .notice_content{
      color: #ED8566;
    }
    .notice_box .notice_detail{
      color: #666;
      margin-left: 15px;
    }
    .notice_box .close_btn{
      width: 40px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      color: #666;
      font-size: 20px;
      position: absolute;
      top: 0;
      right: 0;
      z-index: 2;
    }

    /*  统计数据块 */
    .headBox .total_box{
      padding: 15px 0;
    }
    .radiusBox{
      flex: 1;
      position: relative;
      background: #fff;
      border-radius: 10px;
      margin-right: 15px;
      box-shadow:0px 0px 3px 0px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }
    .lineBlock{
      padding: 30px 0 30px 10%;
      position: relative;
      z-index: 2;
    }
    .line_name{
      font-size: 16px;
      margin-bottom: 5px;
    }
    .line_value{
      font-size: 24px;
      font-weight: 500;
    }
    .radiusBox:nth-child(1) .lineBlock{
      color: #1C487D;
      border-left: 4px solid #1C487D;
    }
    .radiusBox:nth-child(2) .lineBlock{
      color: #15A9AE;
      border-left: 4px solid #15A9AE;
    }
    .radiusBox:nth-child(3) .lineBlock{
      color: #b600f2;
      border-left: 4px solid #b600f2;
    }
    .radiusBox:nth-child(4) .lineBlock{
      color: #FEAC2D;
      border-left: 4px solid #FEAC2D;
    }
    .radiusBox:nth-child(5) .lineBlock{
      color: #D41010;
      border-left: 4px solid #D41010;
    }
    .radiusBox:nth-child(6) .lineBlock{
      color: #EB7956;
      border-left: 4px solid #EB7956;
    }
    .radiusBox:nth-child(7) .lineBlock{
      color: #009644;
      border-left: 4px solid #009644;
    }
    .round1{
      width: 60px;
      height: 60px;
      border-radius: 50%;
      position: absolute;
      right: -10px;
      top: -10px;
      z-index: 1;
      opacity: 0.35;
    }
    .round2{
      width: 110px;
      height: 110px;
      border-radius: 50%;
      position: absolute;
      right: -30px;
      bottom: -30px;
      z-index: 1;
      opacity: 0.6;
    }
    .radiusBox:nth-child(1) .round1, .radiusBox:nth-child(1) .round2{
      background: #eef5ff;
    }
    .radiusBox:nth-child(2) .round1, .radiusBox:nth-child(2) .round2{
      background: #e5fbf8;
    }
    .radiusBox:nth-child(3) .round1, .radiusBox:nth-child(3) .round2{
      background: #fcf4ff;
    }
    .radiusBox:nth-child(4) .round1, .radiusBox:nth-child(4) .round2{
      background: #fff7ec;
    }
    .radiusBox:nth-child(5) .round1, .radiusBox:nth-child(5) .round2{
      background: #ffeeee;
    }
    .radiusBox:nth-child(6) .round1, .radiusBox:nth-child(6) .round2{
      background: #fff0eb;
    }
    .radiusBox:nth-child(7) .round1, .radiusBox:nth-child(7) .round2{
      background: #ddffee;
    }

    .table_title{
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      border-bottom: 1px solid #ededed;
      padding: 8px 0;
    }
    .title_block{
      font-size: 14px;
      font-weight: 500;
      margin-right: 10px;
    }
    .choose_time {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      overflow: hidden;
    }
    .on_choose_one {
      font-size: 12px;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      padding: 2px 5px;
      cursor: pointer;
      color: #CBCBCB;
      border: 1px solid #CBCBCB;
      /*border-right: none;*/
      margin-right: -1px;
    }
    .on_choose_one:first-child{
      border-radius: 10px 0 0 10px;
    }
    .on_choose_one:last-child{
      border-radius: 0 10px 10px 0;
      border: 1px solid #CBCBCB;
      margin-right: 0;
    }
    .on_show_it {
      border: 1px solid #2c5586!important;
      color: #2c5586!important;
      z-index: 2;
    }

    .rangeBlock{
      width: 100%;
      height: 300px;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      align-items: center;
      position: relative;
      padding-top: 30px;
      box-sizing: border-box;
    }
    .range1{
      width: 30%;
      height:10px;
      background: #D20707;
      margin-right: 10px;
      border-radius: 10px;
    }
    .range1_desc{
      position: absolute;
      top: calc(50% - 60px);
      left: 0;
      color: #D20707;
    }
    .range2_desc{
      position: absolute;
      top: calc(50% - 60px);
      right: 0;
      color: #FEAE33;
      text-align: right;
    }
    .desc_text{
      font-size: 16px;
    }
    .desc_num{
      font-size: 28px;
    }
    .range2{
      width: 70%;
      height:10px;
      background: #FEAE33;
      border-radius: 10px;
    }
</style>
